package com.edu.cqr.web.demo.service;

import com.edu.cqr.web.demo.dto.FreeRoomDTO;
import com.edu.cqr.web.demo.dto.RoomOrderDTO;
import com.edu.cqr.web.demo.model.RoomPrice;
import com.edu.cqr.web.demo.model.RoomType;

import java.util.List;


public interface RoomService {
    List<FreeRoomDTO>findFreeRoomByMinFreeCount(String checkInDate, String checkOutDate);

    RoomType findRoomTypeByRoomTypeNum(Long roomTypeNum);

    /**
     * 查询客房类型价格
     *
     * @param roomTypeNum 客房主键
     * @return 客房价格类
     */
    RoomPrice findRoomPriceByRoomTypeNum(Long roomTypeNum);

    /**
     * 创建订单
     *
     * @param roomOrderDTO 所有订单信息
     * @return 订单流水号
     */
    Long reserveRoom(RoomOrderDTO roomOrderDTO);

}
